package com.ruoyi.report.mapper;

import com.ruoyi.report.domain.ReportWorkbookConfig;

import java.util.List;

/**
 * @version v1.0
 * @ProjectName: report
 * @ClassName: ReportDataMapper
 * @Description: 报表数据Mapper
 * @Author: sunyan
 * @Date: 2022/3/2 15:28
 */
public interface ReportDataMapper {
    /**
     * 查询报表列表
     * @param
     * @return 报表列表
     */
    public List<ReportWorkbookConfig> selectReportDataList(ReportWorkbookConfig reportWorkbookConfig);

    /**
     * 根据id查询报表数据
     * @param  id
     * @return ReportData
     */
    public ReportWorkbookConfig selectReportById(Long id);
    /**
     * 新增报表数据
     * @param  reportWorkbookConfig
     * @return int
     */
    public int insertReportData(ReportWorkbookConfig reportWorkbookConfig);
    /**
     * 更新报表数据
     * @param  reportWorkbookConfig
     * @return 更新的行数
     */
    public int updateReportData(ReportWorkbookConfig reportWorkbookConfig);
    /**
     * 根据id删除报表数据
     * @param  id
     * @return 删除的行数
     */
    public int deleteReportById(Long id);

    /**
     * 设置模板
     * @return */
    public int setReportTemplate(ReportWorkbookConfig reportWorkbookConfig);
}
